package org.xx.armory.spring5.mvc;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 表示找不到请求资源的异常。
 */
@ResponseStatus(HttpStatus.NOT_FOUND)
public final class ResourceNotFoundException
        extends RuntimeException {
    private static final long serialVersionUID = 1L;

    public ResourceNotFoundException() {
        super("Cannot find resource");
    }

    public ResourceNotFoundException(
            Object key
    ) {
        super("Cannot find resource(" + key + ")");
    }
}

